{% extends "admin/base_site.html" %}

{% load i18n %}
{% load sentry_helpers %}
{% load adminmedia %}

{% block bodyclass %}dashboard{% endblock %}

{% block coltype %}colMS{% endblock %}

{% block breadcrumbs %}
    <div id="breadcrumbs"><a href="../admin">Home</a> &gt; sentry</div>
{% endblock %}

{% block extrastyle %}
<style type="text/css" media="screen">
.paging {
    display: inline-block; 
    padding-left: 5px;
    padding-top: 5px;
    font-weight: bold;
}
#search-box {
    clear: both;
    background:#fff;
    border: 0px;
}
#gavin-others {
    display: block; 
    height: 100px; 
    padding-top: 5px;
}
</style>
{% endblock %}

{% block content-class %}content-bis{% endblock %}

{% block extrahead %}{{ block.super }} 
        <link href="//fonts.googleapis.com/css?family=Yanone+Kaffeesatz:light,regular&amp;subset=latin" rel="stylesheet" type="text/css">
        <link href="{% url sentry-media "styles/global.css" %}" rel="stylesheet" type="text/css"/>
        <link href="{% url sentry-media "images/sentry.png" %}" rel="shortcut icon"/>
        <script type="text/javascript" src="{% url sentry-media "scripts/jquery.js" %}"></script>
        <script type="text/javascript" src="{% url sentry-media "scripts/jquery.animate-colors-min.js" %}"></script>
        <script type="text/javascript" src="{% url sentry-media "scripts/highcharts.js" %}" ></script>
        <script type="text/javascript" src="{% url sentry-media "scripts/global.js" %}"></script>
        <script type="text/javascript">
        Sentry.config({
            mediaUrl: '{% url sentry-media '' %}',
            apiUrl: '{% url sentry-ajax %}',
            defaultImage: '{% url sentry-media 'images/sentry.png' %}'
        });
        {% if has_realtime %}
        Sentry.realtime.enable();
        {% endif %}
        </script>
        <!--link rel="stylesheet" type="text/css" href="{% load adminmedia %}{% admin_media_prefix %}css/dashboard.css" /-->
{% endblock %}

{% block content %}
{{ block.super }}
<!-- SEARCH BOX -->
<div class="module search span-6" style='margin-top: 4px !important'>
    {% block search %}
      <form method="GET" action="{% url sentry-search %}">
        <input type="hidden" name="sort" value="{% if sort %}{{ sort }}{% endif %}"/>
        <input type="text" id="searchbar" name="q" value="{% if query %}{{ query }}{% endif %}" placeholder="{% if has_search %}search query or message id{% else %}message id{% endif %}"/>
        <button type="submit" class="search">{% trans "Go" %}</button>
      </form>
    {% endblock %}
</div>
{% endblock %}

{% block footer %}
<div id="footer">
    Sentry | Conjured up by the <a href="http://code.disqus.com">DISQUS</a> team and other noble <a href="https://github.com/dcramer/django-sentry/contributors">sorcerers</a>.
</div>
{% endblock %}
